package cn.zebra.dev.mall.module.product.vo;

import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.time.LocalDateTime;


@Getter
@Setter
@ToString
public class ProductCommentVO {

    @ApiModelProperty(value = "订单id")
    @NotNull(message = "订单id不能为空")
    private Long ordersId;

    @ApiModelProperty(value = "评分1(1-5)")
    @TableField(exist = false)
    private Integer scoreOne;

    @ApiModelProperty(value = "评分2(1-5)")
    @TableField(exist = false)
    private Integer scoreTwo;

    @ApiModelProperty(value = "评分3(1-5)")
    @TableField(exist = false)
    private Integer scoreThree;

    @ApiModelProperty(value = "评价内容")
    @NotBlank(message = "请输入评价内容")
    private String content;

    @ApiModelProperty(value = "商品图片数组")
    private String imageUrl;

    @ApiModelProperty(value = "评价来源")
    private Integer sourceType;

    @ApiModelProperty(value = "是否可见")
    private Boolean showFlag;

}
